cmake_minimum_required(VERSION 3.22.1)

# Declares and names the project.
project("qisda")

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 包含 nlohmann/json 和 Protobuf 的头文件路径
include_directories(E:/include)

# 源文件
add_library(
        qisda
        SHARED
        TreadMillCommandUtil.cpp
        TreadMillConstants.cpp
        Treadmill.cpp
        native-lib.cpp
)

# 链接 Protobuf 和 Abseil 库
target_link_libraries(
        qisda
)

# 链接日志库
find_library(
        log-lib
        log)

target_link_libraries(
        qisda
        ${log-lib})

